﻿using System.Collections.Generic;
using NHibernate.Criterion;
using Pool.DataBase.Models;

namespace Pool.DataBase.DAL
{
    public class LocationDAL : NHibernateDAL
    {
        public IList<LocationInfo> SearchByKeyword(string keyword)
        {
            return QueryOver<LocationInfo>(l => l.LiNm.IsLike(keyword, MatchMode.Anywhere));
        }
    }
}
